/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controller;

import Database.DBEmployee;
import Database.IFDBEmployee;
import Domain.Employee;
import java.util.ArrayList;

/**
 *
 * @author Min0
 */
public class CTRLEmployee {
    
    IFDBEmployee Employee;
    
    public CTRLEmployee()
    {
        Employee = new DBEmployee();
    }
    
    public void InsertEmployee(Employee employee)
    {
        Employee.InsertEmployee(employee);
    }
    
    public void InsertEmployee(String LoginID, String Name, String Address, String Country, String PhoneNo, String Email, String Occupation, String Department)
    {
        Employee.InsertEmployee(LoginID, Name, Address, Country, PhoneNo, Email, Occupation, Department);
    }
    
    public Employee GetEmployee(String LoginID)
    {
        return Employee.GetEmployee(LoginID);
    }
    
    public ArrayList<Employee> GetEmployeeList()
    {
       return Employee.GetEmployeeList();
    }
    
    public void UpdateEmployee(String LoginID, String Name, String Address, String Country, String PhoneNo, String Email, String Occupation, String Department)
    {
        Employee.UpdateEmployee(LoginID, Name, Address, Country, PhoneNo, Email, Occupation, Department);
    }
    
    public void DeleteEmployee(String LoginID)
    {
        Employee.DeleteEmployee(LoginID);
    }
    
    public int getMax()
    {
        return Employee.getMax();
    }
}
